package com.pulaien.shop.controller;

import com.alibaba.fastjson2.JSONArray;
import com.pulaien.common.core.controller.BaseController;
import com.pulaien.common.core.domain.AjaxResult;
import com.pulaien.system.domain.ConfigAccountNumber;
import com.pulaien.system.domain.ConfigAddressInfo;
import com.pulaien.system.service.IConfigAccountNumberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 账号配置Controller
 *
 * @author pulaien
 */
@RestController
@RequestMapping("/shop/configAccountNumber")
@Api(tags = "商城端账号配置")
public class ShopAccountNumberController extends BaseController
{
    @Autowired
    private IConfigAccountNumberService configAccountNumberService;

    @ApiOperation(value = "下拉选项购买账号")
    @RequestMapping(value = "/getAllList", method = RequestMethod.GET)
    @ResponseBody
    public AjaxResult  getAllList() {
        List<ConfigAccountNumber> record=configAccountNumberService.getAllList();
        return AjaxResult.success(record);
    }

}
